home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 January - Disc 2 / Macworld (1999-01) (Disk 2).dmg / Mac OS 8.5 Updaters / RealPC⁄Soft Windows / SoftWindows / SoftWindows Upgrade Disk / INSIGNIA / FINDLANG.BAT < prev    next >
Encoding:
DOS Batch File  |  1998-08-24  |  1.2 KB  |  43 lines

  1. rem [
  2. rem    Name:        u.findlang.bat
  3. rem
  4. rem    Derived from:    (original)
  5. rem
  6. rem    Author:        Clive Standbridge
  7. rem
  8. rem    Created on:    Mar 1997
  9. rem
  10. rem    Sccs ID:    @(#)u.findlang.bat    1.1 03/14/97
  11. rem
  12. rem    Coding Stds:    
  13. rem
  14. rem    Purpose:    To detect the language on the hard disk.
  15. rem            Sets the given environment variable to a (lower case)
  16. rem            hex language code suitable for incorporation into
  17. rem            the serial number.
  18. rem            If the language code is unsuported, the environment
  19. rem            variable is cleared.
  20. rem
  21. rem    Parameters:    1    Name of environment variable to receive result.
  22. rem
  23. rem    Copyright 1997 Insignia Solutions PLC. All rights reserved.
  24. rem ]
  25.  
  26. rem  Preset result to unknown.
  27. set %1=
  28.  
  29. rem  The language is recorded in the sLanguage field in the [Intl] section
  30. rem  of win.ini. It is a three-character code, the first two characters
  31. rem  specify the language and the third specifies the dialect which we ignore.
  32.  
  33. set findlang_lang=xxxx
  34. find /v ";" c:\windows\win.ini | find "sLanguage=" | ibatch findlang_lang string 10 2
  35.  
  36. if "%findlang_lang%" == "en" set %1=00
  37. if "%findlang_lang%" == "fr" set %1=01
  38. if "%findlang_lang%" == "de" set %1=02
  39. if "%findlang_lang%" == "it" set %1=03
  40. if "%findlang_lang%" == "jp" set %1=04
  41.  
  42. set findlang_lang=
  43.